//
//  SRClassIdentySelectView.m
//  StoryShow
//
//  Created by CyonLeuMBP on 2017/7/20.
//  Copyright © 2017年 qudiandu.cn. All rights reserved.
//

#import "SRClassIdentySelectView.h"

@implementation SRClassIdentySelectView

- (void)awakeFromNib {
    [super awakeFromNib];
    
    FZStyleSheet *css = [FZStyleSheet currentStyleSheet];
    
    self.backgroundColor = css.color_2;
    self.titleLabel.font = css.fontOfH5;
    
    self.studentLabel.textColor = self.teacherLabel.textColor = css.color_2;
    self.studentLabel.font = self.teacherLabel.font = css.fontOfH6;

    WEAKSELF
    [self.studentView addTapGestureHandler:^(UITapGestureRecognizer *gestureRecognizer, UIView *view, CGPoint locationInView) {
        if (weakSelf.touchIdentyBlock) {
            weakSelf.touchIdentyBlock(NO);
        }
    }];
    [self.teacherView addTapGestureHandler:^(UITapGestureRecognizer *gestureRecognizer, UIView *view, CGPoint locationInView) {
        if (weakSelf.touchIdentyBlock) {
            weakSelf.touchIdentyBlock(YES);
        }
    }];
}


@end
